package project.test;

import project.CommandEvaluator;
import project.Tokenizer;

import java.util.ArrayList;
import java.util.List;

public class testCommandEval {
    private static CommandEvaluator commandEvaluator;

    public static void main(String[] args) {
        try{
            commandEvaluator = new CommandEvaluator();
            List<String> commands = new ArrayList<>();
//            commands.add("let x = 3");
//            commands.add("let y = 4");
//            commands.add("let z = 5");
//            commands.add("save \"all variables\"");
//            commands.add("save \"just z\" z");
//            commands.add("saved");
            commands.add("load \"all variables\"");
            commands.add("let");

            for(String command : commands){
                Tokenizer tokenizer = new Tokenizer(command);
                commandEvaluator.setTokenizer(tokenizer);
                commandEvaluator.evaluator();
            }


        }catch (Exception e){
            System.out.println("\nERROR: " + e.getMessage());
        }
    }
}
